dgb: fenced non-genesis share-retarget conformance KAT (emergency-decay + ±10% clamp, oracle-pinned) - #556
Merged
Conversation
frstrtr
force-pushed
the
dgb/phaseB-retarget-conformance-kat
branch
2 times, most recently
from
June 26, 2026 23:20
2dfd846 to
ab7061b
Compare
…ay + ±10% clamp, oracle-pinned) Adds dgb_share_target_retarget_test pinning the NON-genesis (deep-chain, acc_height >= TARGET_LOOKBEHIND) branch of ShareTracker::compute_share_target — Step-3 emergency time-based decay and Step-4 ±10% clamp — which previously had no direct coverage. Goldens are derived from an independent big-int Python reference of the oracle formula, not from the SUT, so the KAT is non-circular. Fenced and additive: only src/impl/dgb/test/ plus the build.yml --target allowlist; no production code touched.
frstrtr
force-pushed
the
dgb/phaseB-retarget-conformance-kat
branch
from
June 27, 2026 10:58
ab7061b to
c5151f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fenced, additive conformance KAT closing the coverage gap on the NON-genesis (deep-chain, acc_height >= TARGET_LOOKBEHIND) branch of
dgb::ShareTracker::compute_share_target— the consensus-bearing Step-3 emergency time-based decay and Step-4 ±10% clamp.Non-circular: every golden is derived from an independent big-int Python reference of the oracle formula (frstrtr/p2pool-dgb-scrypt data.py generate_transaction), not by calling the SUT. Touches only src/impl/dgb/test/ and the build.yml --target allowlist; no production code changed. 5/5 green locally; genesis + dgb_share_test regressions unchanged.